package com.example;

import android.app.Application;
import android.content.Context;
import android.support.v4.app.Fragment;

import com.facebook.drawee.backends.pipeline.Fresco;

import java.util.ArrayList;

/**
 * 董建业  时间:2017/4/9.
 */

public class App extends Application {
    private static Context instance;//全局上下文
    public static ArrayList<Fragment> AllFragment = new ArrayList<>();
    public static Context getInstance() {
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        Fresco.initialize(this);
    }

    public static ArrayList<Fragment> getAllFragment() {
        return AllFragment;
    }
}
